package com.pig4cloud.pig.common.data.config;

import com.pig4cloud.pig.common.data.interceptor.PigFeignTenantInterceptor;
import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author lengleng
 * @date 2018/9/14
 * feign 租户信息拦截
 */
@Configuration
public class PigFeignTenantConfiguration {
    @Bean
    public RequestInterceptor pigxFeignTenantInterceptor() {
        return new PigFeignTenantInterceptor();
    }
}